package com.ruoyi.duty.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 禁毒业务培训业务对象 duty_jdywpx
 *
 * @author xiaohao
 * @date 2023-01-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DutyJdywpxBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long jdywpxId;

    /**
     * 培训开始时间;yyyy-mm-dd
     */
    @NotNull(message = "培训开始时间;yyyy-mm-dd不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pxkssj;

    /**
     * 培训结束时间;yyyy-mm-dd
     */
    @NotNull(message = "培训结束时间;yyyy-mm-dd不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pxjssj;

    /**
     * 培训师
     */
    @NotBlank(message = "培训师不能为空", groups = {AddGroup.class, EditGroup.class})
    private String pxs;

    /**
     * 培训主题
     */
    @NotBlank(message = "培训主题不能为空", groups = {AddGroup.class, EditGroup.class})
    private String theme;

    /**
     * 参加人员
     */
    @NotBlank(message = "参加人员不能为空", groups = {AddGroup.class, EditGroup.class})
    private String cjry;

    /**
     * 培训地址
     */
    @NotBlank(message = "培训地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String address;

    /**
     * 培训内容
     */
    @NotBlank(message = "培训内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String content;

    /**
     * 培训图片
     */
    @NotBlank(message = "培训图片不能为空", groups = {AddGroup.class, EditGroup.class})
    private String images;


}
